SUBDIRS = src data
noinst_SCRIPTS = typer.spec
dist_doc_DATA = AUTHORS ChangeLog NEWS README COPYING
EXTRA_DIST = typer.in.spec
CLEANFILES = $(noinst_SCRIPTS)

typer.spec: typer.in.spec Makefile
	$(PACKAGE_PARSE) $(top_srcdir)/typer.in.spec > typer.spec

deepdistcheck:
	make && make clean && make && make distcheck

rpm: typer.spec
	cp typer-$(PACKAGE_VERSION).tar.bz2 ~/rpmbuild/SOURCES/
	cp $(top_srcdir)/typer.spec ~/rpmbuild/SPECS
	( cd ~/rpmbuild/SPECS && rpmbuild -ba typer.spec ) && cp ~/rpmbuild/RPMS/i686/typer-$(PACKAGE_VERSION)-1.*.i686.rpm $(top_srcdir)/

upload:
	upload gnome-typer $(PACKAGE_TARNAME) $(PACKAGE_VERSION) i686
